package com.ttpai.boot.lbs.model;

public class MetroPointTimeVO {

    private String cityName; // 城市名称
    private String origin; // 起点
    private String distination; // 终点
    private Integer useTime; // 终点
    private String bdInfo; // 请求到的原始数据

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MetroPointTimeVO that = (MetroPointTimeVO) o;

        if (!cityName.equals(that.cityName)) return false;
        if (!origin.equals(that.origin)) return false;
        return distination.equals(that.distination);
    }

    @Override
    public int hashCode() {
        int result = cityName.hashCode();
        result = 31 * result + origin.hashCode();
        result = 31 * result + distination.hashCode();
        return result;
    }

    public MetroPointTimeVO() {
    }

    public MetroPointTimeVO(String cityName, String origin, String distination) {
        this.cityName = cityName;
        this.origin = origin;
        this.distination = distination;
    }

    public MetroPointTimeVO(String cityName, String origin, String distination, Integer useTime) {
        this.cityName = cityName;
        this.origin = origin;
        this.distination = distination;
        this.useTime = useTime;
    }

    public Integer getUseTime() {
        return useTime;
    }

    public void setUseTime(Integer useTime) {
        this.useTime = useTime;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getDistination() {
        return distination;
    }

    public void setDistination(String distination) {
        this.distination = distination;
    }

    public String getBdInfo() {
        return bdInfo;
    }

    public void setBdInfo(String bdInfo) {
        this.bdInfo = bdInfo;
    }
}